package huxibianjie.com.lbscandroid.ui.new_activity;

import android.os.Handler;
import android.view.WindowManager;

import huxibianjie.com.lbscandroid.R;
import huxibianjie.com.lbscandroid.base.BaseActivity;
import huxibianjie.com.lbscandroid.manager.RouteManager;

/**
 * 欢迎页面  一秒跳转 MainActivity 页面
 */
public class SplashActivity extends BaseActivity {
    @Override
    protected int getContentView() {
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        return R.layout.activity_welcom;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                RouteManager.getInstance().showMainActivity(SplashActivity.this);
                finish();
            }
        }, 1000);// 1秒后关闭，并跳转到主页面
    }

    @Override
    protected void initListener() {

    }
}
